﻿using System;
using System.Collections.Generic;
using System.Text;
using S7.IDAL;

namespace S7.DALFactory
{
    public class Create
    {
        public static IUserInfo UserInfo()
        {
            object objType = null;

            string ImplementClassLibrary = System.Configuration.ConfigurationManager.AppSettings["DAL"];

            objType = DataCache.CreateObject(ImplementClassLibrary, ImplementClassLibrary + ".UserInfo");

            return (IUserInfo)objType;
        }

        public static IOfflineMessage OfflineMessage()
        {
            object objType = null;

            string ImplementClassLibrary = System.Configuration.ConfigurationManager.AppSettings["DAL"];

            objType = DataCache.CreateObject(ImplementClassLibrary, ImplementClassLibrary + ".OfflineMessage");

            return (IOfflineMessage)objType;
        }
    }
}
